package com.kelvin.paopao.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kelvin.kelvinlib.imageloader.GlideUtil;
import com.kelvin.paopao.R;
import com.kelvin.paopao.api.responseBean.DatePersonModel;
import com.kelvin.paopao.api.responseBean.LocationPickModel;

/**
 * Created by Administrator on 2017/5/10.
 */

public class LocationPickAdapter extends BaseQuickAdapter<LocationPickModel, BaseViewHolder> {
    private Context context;

    public LocationPickAdapter(Context context) {
        super(R.layout.recyclerview_location_pick_item);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, LocationPickModel item) {
        helper.setText(R.id.tv_name, item.getUsername());
        helper.setText(R.id.tv_phone, item.getTel());
        helper.setText(R.id.tv_location, item.getAddress());
        helper.setText(R.id.tv_area, item.getLname());
        helper.addOnClickListener(R.id.tv_delete);
    }
}
